package main

import "fmt"

func printSlice(myArray []int){
	// 引用传递
	for _, value := range myArray {
		fmt.Println("value = ", value)
	}
	myArray[0] = 888
}

func main() {
	// 动态数组，切片 slice
	mySlice := []int{1,3,4}
	printSlice(mySlice)

	for _, value := range mySlice {
		fmt.Println("value = ", value)
	}
}
